<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style>
        
    </style>
</head>
<body>
    
</body>
<script>


    $(".box").ccc().bbb().aaa().bbb().ccc().bbb();

    function $(a){
        console.log(a);
        return {
            aaa:function(){
                console.log("aaa");
                return this;
            },
            bbb:function(){
                console.log("bbb");
                return this;
            },
            ccc:function(){
                console.log("ccc");
                return this;
            }
        }
    }

</script>
</html>